﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MonthDepartment.aspx.cs"
    Inherits="Report_MonthDepartment" Theme="skin_control" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>部门月统计</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        <!--
        function DepartmentForReport(str) {
            window.open('../WebCommon/DepartmentForReport.aspx?SID=' + str, '', 'width=400,height=260,top=200, left=300');
        }
        -->   
       
    </script>
    <style type="text/css">
        /*标黑投影显示的表格线*/
        td
        {
            border-width: 1px;
            border-color: Black;
        }
        th
        {
            border-width: 1px;
            border-color: Black;
        }
        table
        {
            border-color: Black;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td class="firstbjcolor" style="height: 14px; width: 100%;" colspan="4">
                    <span class="currentHere">当前位置:统计管理-&gt;部门月计划统计</span>
                </td>
            </tr>
            <tr>
                <td style="height: 1; width: 100%;" colspan="4">
                </td>
            </tr>
            <tr>
                <td style="width: 100%;" colspan="4">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td style="width: 32px">
                                类型:
                            </td>
                            <td style="width: 90px">
                                <asp:DropDownList ID="drpType" runat="server" SkinID="dropdownlistSkin">
                                    <asp:ListItem Value="0">按中心查询</asp:ListItem>
                                    <asp:ListItem Value="1">按部门查询</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="width: 32px">
                                <%--部门:--%>
                            </td>
                            <td>
                                <input id="txtDepartment" runat="server" type="text" style="display: none" /><%--<a href="#" onclick="javascript:DepartmentForReport(parentNode.firstChild.id );"><input id="Submit1" type="submit" value="..." style="width: 19px; height: 22px" size="" /></a>--%>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="background-image: url(../images/secondRow.gif); background-repeat: repeat-x"
                    colspan="4">
                    &nbsp;起始月：年份:<asp:DropDownList ID="drpYearStart" runat="server" AutoPostBack="True"
                        OnSelectedIndexChanged="drpYearStart_SelectedIndexChanged" SkinID="dropdownlistSkin">
                    </asp:DropDownList>
                    年周期:<asp:DropDownList ID="drpQuarterDateStart" runat="server" AutoPostBack="True"
                        SkinID="dropdownlistSkin" OnSelectedIndexChanged="drpQuarterDateStart_SelectedIndexChanged">
                    </asp:DropDownList>
                    月周期:<asp:DropDownList ID="drpMonthDateStart" runat="server" AutoPostBack="True" SkinID="dropdownlistSkin"
                        OnSelectedIndexChanged="drpMonthDateStart_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="background-image: url(../images/secondRow.gif); background-repeat: repeat-x"
                    colspan="4">
                    &nbsp;结束月：年份:<asp:DropDownList ID="drpYearEnd" runat="server" AutoPostBack="True"
                        OnSelectedIndexChanged="drpYearEnd_SelectedIndexChanged" SkinID="dropdownlistSkin">
                    </asp:DropDownList>
                    年周期:<asp:DropDownList ID="drpQuarterDateEnd" runat="server" AutoPostBack="True" SkinID="dropdownlistSkin"
                        OnSelectedIndexChanged="drpQuarterDateEnd_SelectedIndexChanged">
                    </asp:DropDownList>
                    月周期:<asp:DropDownList ID="drpMonthDateEnd" runat="server" AutoPostBack="True" SkinID="dropdownlistSkin"
                        OnSelectedIndexChanged="drpMonthDateEnd_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:Button ID="btnQuery" runat="server" Text="统计" OnClick="btnQuery_Click" SkinID="buttonSkin" />
                    <asp:Button ID="btnExcel" runat="server" OnClick="btnExcel_Click" Text="导出Excel"
                        SkinID="buttonSkin" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:GridView ID="gdvMonthDepartment" runat="server" AutoGenerateColumns="False"
                        Width="100%" SkinID="gridviewSkinDisplay" OnRowDataBound="gdvMonthDepartment_RowDataBound"
                        OnRowCreated="gdvMonthDepartment_RowCreated" EnableModelValidation="True">
                        <Columns>
                            <asp:BoundField DataField="DepartmentParentName" HeaderText="名称">
                                <ItemStyle Width="6%" />
                                <HeaderStyle Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="DepartmentName" HeaderText="名称">
                                <ItemStyle Width="6%" />
                                <HeaderStyle Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheMonthPlanCount" HeaderText="计划总数">
                                <ItemStyle Width="6%" />
                                <HeaderStyle Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheEmphasisMonthPlanCount" HeaderText="重点计划总数">
                                <ItemStyle Width="6%" />
                                <HeaderStyle Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheMonthCompleteCount" HeaderText="圆满完成计划数">
                                <ItemStyle BackColor="#00C0C0" Width="6%" />
                                <HeaderStyle BackColor="#00C0C0" Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheEmphasisMonthCompleteCount" HeaderText="重点圆满完成计划数">
                                <ItemStyle BackColor="#00C0C0" Width="6%" />
                                <HeaderStyle BackColor="#00C0C0" Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheMonthSuccess" HeaderText="顺利进行计划数">
                                <ItemStyle BackColor="#00C000" Width="6%" />
                                <HeaderStyle BackColor="#00C000" Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheEmphasisMonthSuccess" HeaderText="重点顺利进行计划数">
                                <ItemStyle BackColor="#00C000" Width="6%" />
                                <HeaderStyle BackColor="#00C000" Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheMonthHindrance" HeaderText="有障碍计划数">
                                <ItemStyle BackColor="Yellow" Width="6%" />
                                <HeaderStyle BackColor="Yellow" Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheEmphasisMonthHindrance" HeaderText="重点有障碍计划数">
                                <ItemStyle BackColor="Yellow" Width="6%" />
                                <HeaderStyle BackColor="Yellow" Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheMonthUnControl" HeaderText="失控计划数">
                                <ItemStyle BackColor="Red" Width="6%" />
                                <HeaderStyle BackColor="Red" Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheEmphasisMonthUnControl" HeaderText="重点失控计划数">
                                <ItemStyle BackColor="Red" Width="6%" />
                                <HeaderStyle BackColor="Red" Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheMonthAdjustment" HeaderText="调整计划数">
                                <ItemStyle BackColor="Silver" Width="6%" />
                                <HeaderStyle BackColor="Silver" Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheEmphasisMonthAdjustment" HeaderText="重点调整计划数">
                                <ItemStyle BackColor="Silver" Width="6%" />
                                <HeaderStyle BackColor="Silver" Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="计划完成率">
                                <ItemStyle BackColor="white" Width="6%" />
                                <HeaderStyle BackColor="white" Width="6%" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="重点计划完成率">
                                <ItemStyle BackColor="white" Width="6%" />
                                <HeaderStyle BackColor="white" Width="6%" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                    <asp:GridView ID="gdvMonthDepartmentCenter" runat="server" AutoGenerateColumns="False"
                        Width="100%" SkinID="gridviewSkinDisplay" OnRowCreated="gdvMonthDepartmentCenter_RowCreated"
                        OnRowDataBound="gdvMonthDepartmentCenter_RowDataBound">
                        <Columns>
                            <asp:BoundField DataField="DepartmentParentName" HeaderText="名称" />
                            <asp:BoundField DataField="DepartmentName" HeaderText="名称" />
                            <asp:BoundField DataField="TheMonthPlanCount" HeaderText="计划总数" />
                            <asp:BoundField DataField="TheEmphasisMonthPlanCount" HeaderText="重点计划总数" />
                            <asp:BoundField DataField="TheMonthCompleteCount" HeaderText="圆满完成计划数">
                                <ItemStyle BackColor="#00C0C0" />
                                <HeaderStyle BackColor="#00C0C0" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheEmphasisMonthCompleteCount" HeaderText="重点圆满完成计划数">
                                <ItemStyle BackColor="#00C0C0" />
                                <HeaderStyle BackColor="#00C0C0" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheMonthSuccess" HeaderText="顺利进行计划数">
                                <ItemStyle BackColor="#00C000" />
                                <HeaderStyle BackColor="#00C000" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheEmphasisMonthSuccess" HeaderText="重点顺利进行计划数">
                                <ItemStyle BackColor="#00C000" />
                                <HeaderStyle BackColor="#00C000" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheMonthHindrance" HeaderText="有障碍计划数">
                                <ItemStyle BackColor="Yellow" />
                                <HeaderStyle BackColor="Yellow" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheEmphasisMonthHindrance" HeaderText="重点有障碍计划数">
                                <ItemStyle BackColor="Yellow" />
                                <HeaderStyle BackColor="Yellow" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheMonthUnControl" HeaderText="失控计划数">
                                <ItemStyle BackColor="Red" />
                                <HeaderStyle BackColor="Red" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheEmphasisMonthUnControl" HeaderText="重点失控计划数">
                                <ItemStyle BackColor="Red" />
                                <HeaderStyle BackColor="Red" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheMonthAdjustment" HeaderText="调整计划数">
                                <ItemStyle BackColor="Silver" />
                                <HeaderStyle BackColor="Silver" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TheEmphasisMonthAdjustment" HeaderText="重点调整计划数">
                                <ItemStyle BackColor="Silver" />
                                <HeaderStyle BackColor="Silver" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="计划完成率">
                                <ItemStyle BackColor="white" />
                                <HeaderStyle BackColor="white" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="重点计划完成率">
                                <ItemStyle BackColor="white" />
                                <HeaderStyle BackColor="white" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
